//
//  HomeData.m
//  ZZmetro
//
//  Created by 一介布衣 on 2020/6/11.
//  Copyright © 2020 一介布衣. All rights reserved.
//

#import "HomeData.h"
#import "FuncAreaInfo.h"
#import "FuncInfo.h"
#import "HomeItemAction.h"

@implementation HomeData
/**
 *初始化数据
 */
+(NSMutableArray*) getFuncAreaInfos {
    NSMutableArray* areaInfo = [[NSMutableArray alloc]init];
    
    //=====================================================
    //First func
    FuncAreaInfo* first = [[FuncAreaInfo alloc]init];
    NSMutableArray* infos = [[NSMutableArray alloc]init];
    first.title = @"功能区一";
    first.funcInfos = infos;
    
    FuncInfo* info = [[FuncInfo alloc]init];
    info.name = @"射箭";
    info.img = @"archery.gif";
    info.action = ITEM_ACTION_CLOCK;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"田径";
    info.img = @"athletics.gif";
    info.action = ITEM_ACTION_KPI;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"射箭1";
    info.img = @"archery.gif";
    info.action = ITEM_ACTION_ASK_LEAVE;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"田径2";
    info.img = @"athletics.gif";
    info.action = ITEM_ACTION_PERSONAL_PROFILE;
    [infos addObject:info];
    
    //=====================================================
    //second func
    FuncAreaInfo* second = [[FuncAreaInfo alloc]init];
    infos = [[NSMutableArray alloc]init];
    second.title = @"功能区二";
    second.funcInfos = infos;
 
    info = [[FuncInfo alloc]init];
    info.name = @"羽毛球";
    info.img = @"badminton.gif";
    info.action = ITEM_ACTION_INSPECT;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"羽毛球1";
    info.img = @"badminton.gif";
    info.action = ITEM_ACTION_STATION_SCHEDULE;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"羽毛球2";
    info.img = @"badminton.gif";
    info.action = ITEM_ACTION_MY_SCHEDULE;
    [infos addObject:info];
    
    //=====================================================
    //third func
    FuncAreaInfo* third = [[FuncAreaInfo alloc]init];
    infos = [[NSMutableArray alloc]init];
    third.title = @"功能区三";
    third.funcInfos = infos;

    info = [[FuncInfo alloc]init];
    info.name = @"篮球";
    info.img = @"basketball.gif";
    info.action = ITEM_ACTION_FILE_STUDY;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"篮球1";
    info.img = @"basketball.gif";
    info.action = ITEM_ACTION_MY_METTING;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"篮球2";
    info.img = @"basketball.gif";
    info.action = ITEM_ACTION_REWORD_APPLY;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"篮球3";
    info.img = @"basketball.gif";
    info.action = ITEM_ACTION_TAXATION_FORM;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"篮球4";
    info.img = @"basketball.gif";
    info.action = ITEM_ACTION_COMMUNITY_PARTY;
    [infos addObject:info];
    
    //=====================================================
    //four func
    FuncAreaInfo* four = [[FuncAreaInfo alloc]init];
    infos = [[NSMutableArray alloc]init];
    four.title = @"功能区三";
    four.funcInfos = infos;

    info = [[FuncInfo alloc]init];
    info.name = @"沙滩排球";
    info.img = @"beach-volleyball.gif";
    info.action = ITEM_ACTION_PENDING_TASK;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"拳击";
    info.img = @"boxing.gif";
    info.action = ITEM_ACTION_MSG_NOTI;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"划船";
    info.img = @"canoe-slalom.gif";
    info.action = ITEM_ACTION_SETTING;
    [infos addObject:info];
    
    info = [[FuncInfo alloc]init];
    info.name = @"快艇";
    info.img = @"canoe-sprint.gif";
    [infos addObject:info];
    
    [areaInfo addObject:first];
    [areaInfo addObject:second];
    [areaInfo addObject:third];
    [areaInfo addObject:four];
    
    return areaInfo;
}

@end
